package com.molichuxing.services.business.service;

import com.molichuxing.framework.dto.Paged;
import com.molichuxing.framework.service.RootService;
import com.molichuxing.services.business.dto.request.modify.StoreDeviceBizModifyDto;
import com.molichuxing.services.business.dto.response.DeviceInfoBizDto;

import java.util.Map;

public interface DeviceBizService extends RootService {

    /**
     * 通过cpu获取终端信息
     *
     * @param cpu
     * @return
     * @throws Exception
     */
    public DeviceInfoBizDto getDeviceInfo(String cpu) throws Exception;

    /**
     * 终端
     *
     * @param map
     * @return
     */
    public DeviceInfoBizDto getDeviceStatus(Map<String, Object> map);

    /**
     * 设备
     *
     * @param map
     * @param pageNum
     * @param pageSize
     * @return
     * @throws Exception
     */
    Paged<DeviceInfoBizDto> getDevicePage(Map<String, Object> map, Integer pageNum, Integer pageSize) throws Exception;


    DeviceInfoBizDto getDeviceStore(Integer deviceId);

    Boolean modifyStoreDevice(StoreDeviceBizModifyDto storeDeviceBizModifyDto) throws Exception;

}


